package org.apache.flink.shaded.guava18.com.google.common.util.concurrent;



import java.lang.Thread.UncaughtExceptionHandler;
import java.util.concurrent.ThreadFactory;

public final class ThreadFactoryBuilder {
    private final org.apache.flink.shaded.guava30.com.google.common.util.concurrent.ThreadFactoryBuilder target;

    public ThreadFactoryBuilder() {
        target = new org.apache.flink.shaded.guava30.com.google.common.util.concurrent.ThreadFactoryBuilder();
    }

    public ThreadFactoryBuilder setNameFormat(String nameFormat) {
        target.setNameFormat(nameFormat);
        return this;
    }

    public ThreadFactoryBuilder setDaemon(boolean daemon) {
        target.setDaemon(daemon);
        return this;
    }

    public ThreadFactoryBuilder setPriority(int priority) {
        target.setPriority(priority);
        return this;
    }

    public ThreadFactoryBuilder setUncaughtExceptionHandler(UncaughtExceptionHandler uncaughtExceptionHandler) {
        target.setUncaughtExceptionHandler(uncaughtExceptionHandler);
        return this;
    }

    public ThreadFactoryBuilder setThreadFactory(ThreadFactory backingThreadFactory) {
        target.setThreadFactory(backingThreadFactory);
        return this;
    }

    public ThreadFactory build() {
        return target.build();
    }
}